package com.project.service.impl;

import com.project.bean.CountBean;
import com.project.mapper.ICountMapper;
import com.project.service.ICountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author lyl
 * description:
 */
@Service
@Transactional
public class CountServiceImpl implements ICountService {
    @Autowired
    private ICountMapper iCountMapper;

    @Override
    public List<CountBean> getInfoByProductId(String year) {
        String year1 = (Integer.parseInt(year) + 1) + "";
        return iCountMapper.getInfoByProductId(year, year1);
    }
}
